package com.ruoyi.qualityControl.service.impl;

import com.ruoyi.qualityControl.domain.CaiNiaoWarehouse;
import com.ruoyi.qualityControl.mapper.CaiNiaoWarehouseMapper;
import com.ruoyi.qualityControl.service.CaiNiaoWarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CaiNiaoWarehouseServiceImpl implements CaiNiaoWarehouseService {
    @Autowired
    private CaiNiaoWarehouseMapper caiNiaoWarehouseMapper;
    @Override
    public List<CaiNiaoWarehouse> settleAll() {
        return caiNiaoWarehouseMapper.selectAll();
    }

    @Override
    public Boolean insert(CaiNiaoWarehouse caiNiaoWarehouse) {
        return caiNiaoWarehouseMapper.insert(caiNiaoWarehouse);
    }

    @Override
    public Boolean update(CaiNiaoWarehouse caiNiaoWarehouse) {
        return caiNiaoWarehouseMapper.update(caiNiaoWarehouse);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return caiNiaoWarehouseMapper.deleteById(id);
    }
}
